/**
 * create by young (young2f@outlook.com) on 2023/4/16
 */
'use strict';
module.exports = app => {
  const {router, controller} = app;

  // router.post('/api/store/outbound', controller.store.outbound);//出库
  router.post('/api/store/find/many', controller.store.findMany);
  router.post('/api/store/find', controller.store.findOne);
  router.post('/api/store/desktop', controller.store.desktop);
  router.post('/api/store/export', controller.store.export);

  router.post('/api/store/assess', controller.store.assess);


  router.post('/api/inbound/lot/create', controller.inbound.createInboundLot);
  router.post('/api/inbound/lot/delete', controller.inbound.deleteInboundLot);
  router.post('/api/inbound/lot/find/many', controller.inbound.findInboundLotMany);

  router.post('/api/outbound/lot/find/many', controller.outbound.findLots);
  router.post('/api/outbound/lot/create', controller.outbound.createLot);
  router.post('/api/outbound/lot/delete', controller.outbound.deleteLot);

  // router.post('/api/store/shippingFee/find/many', controller.outbound.findShippingFeeMany);
  // router.post('/api/store/shippingFee/update', controller.outbound.updateShippingFee);
  // router.post('/api/store/shippingFee/create', controller.outbound.createShippingFee);
  // router.post('/api/store/shippingFee/delete', controller.outbound.deleteShippingFee);

  router.post('/api/store/procureReturnOfGoodsOutbound', controller.outbound.procureReturnOfGoodsOutbound);
  /**
   * 报废
   */
  router.post('/api/store/discard/find', controller.store.findDiscardRecord);
  router.post('/api/store/discard/find/many', controller.store.findDiscardRecordMany);
  router.post('/api/store/discard/update', controller.store.updateDiscardRecord);
  router.post('/api/store/discard/create', controller.store.createDiscardRecord);
  router.post('/api/store/discard/delete', controller.store.deleteDiscardRecord);
  router.post('/api/store/discard/review', controller.store.reviewDiscardRecord);
};
